import Mock from 'mockjs'

const filmList = Mock.mock(/\/sys\/movie\/list./, 'get', {
  code: 200,
  msg: 'success',
  data: {
    totalCount: 0,
    pageSize: 10,
    currPage: 1,
    totalPage: '@integer(10,50)',
    'list|10': [{
      'movieId|+1': 1,
      name: '@cname',
      translationName: '@word',
      introduction: '@cparagraph',
      releaseDate: '@date(yyyy-MM-dd)',
      movieStatus: '@integer(1,3)',
      status: '@integer(0,1)'
    }
    ]
  }
})
const status = Mock.mock('/sys/movie/status', 'post', {
  code: 200,
  message: 'success'
})

const deleteFilm = Mock.mock(/\/sys\/movie\/delete\/\d/, 'delete', {
  code: 200,
  message: 'success'
})

// const TypeList = Mock.mock(/\/sys\/movie\/type\/list/, 'get', {
//   code: 200,
//   msg: 'success',
//   data: {
//     totalCount: 0,
//     pageSize: 10,
//     currPage: 1,
//     totalPage: '@integer(10,50)',
//     'list|10': [{
//       'id|+1': 1,
//       typeName: '@cname',
//       status: '@integer(0,1)',
//       profile: '@cparagraph'
//     }
//     ]
//   }
// })
const TypeDelete = Mock.mock('sys/movie/type/delete', 'delete', {
  code: 200,
  msg: 'success'
})
// const actorList = Mock.mock(/\/sys\/actor\/list./, 'get', {
//   code: 200,
//   message: 'success',
//   data: {
//     'actor|1-10': [{
//       'value|+1': 1,
//       label: '@cname'
//     }]
//   }
// })
const TypeUpdate = Mock.mock('/sys/movie/type/update', 'post', {
  code: 200,
  message: 'success'
})
// const filmSubmit = Mock.mock('/sys/movie/update', 'post', {
//   code: 200,
//   message: 'success'
// })
const commentList = Mock.mock('/sys/comment/info', 'get', {
  code: 200,
  msg: 'success',
  data: {
    totalCount: 0,
    pageSize: 10,
    currPage: 1,
    totalPage: '@integer(10,50)',
    'list|10': [{
      'id|+1': 1,
      movieName: '@cname',
      VipName: '@cname',
      score: '@integer(1,10)',
      content: '@cparagraph'
    }
    ]
  }
})
const commentDelete = Mock.mock('/sys/comment/delete', 'delete', {
  code: 200,
  msg: 'success'
})

export { filmList, status, deleteFilm, TypeDelete, TypeUpdate, commentList, commentDelete }
